package org.jeecg.modules.website.service.impl;


import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.website.entity.WebSchoolTeacher;
import org.jeecg.modules.website.mapper.WebSchoolTeacherMapper;
import org.jeecg.modules.website.service.IWebSchoolTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 老师介绍表
 * @Author: jeecg-boot
 * @Date:   2024-12-07
 * @Version: V1.0
 */
@Service
public class WebSchoolTeacherServiceImpl extends ServiceImpl<WebSchoolTeacherMapper, WebSchoolTeacher> implements IWebSchoolTeacherService {

    @Autowired
    private WebSchoolTeacherMapper webSchoolTeacherMapper;
    //更新专业名称信息便于展示
    @Override
    public int updateMajorName(String majorId){
        return webSchoolTeacherMapper.updateMajorName(majorId);
    }

    @Override
    public List<WebSchoolTeacher> queryByMainId(String mainId){
        return  webSchoolTeacherMapper.queryByMainId(mainId);
    }
}
